package DesignPatern.A06_代理模式.QXB.A01简单模式;

/**
 * @Author: Du
 * @Date: 2021/7/22 9:57
 */
public class A01_Main
{
    public static void main(String[] args)
    {
        IGamePlayer player = new GamePlayer("zs");
        player.login();
        player.killBoss();
        player.update();
        
        System.out.println("------代理上线------");
        
        GamePlayerProxy playerProxy = new GamePlayerProxy(player);
        playerProxy.login();
        playerProxy.killBoss();
        playerProxy.update();
    }
}
